package org.durcframework.rms.entity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class RSysOperate {
	@Pattern(regexp = "\\w+", message = "操作代码只能由数字,字母,下划线组成")
	@Size(max = 20, message = "操作代码长度不得大于20")
	@NotNull(message="操作代码不能为空")
	private String operateCode;
	
	@Size(max = 20, message = "操作名称长度不得大于20")
	@NotNull(message="操作名称不能为空")
	private String operateName;

	public void setOperateName(String operateName) {
		this.operateName = operateName;
	}

	public String getOperateName() {
		return this.operateName;
	}

	public String getOperateCode() {
		return operateCode;
	}

	public void setOperateCode(String operateCode) {
		this.operateCode = operateCode;
	}

}